<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>

</head>
<body class="gray-bg">
	<div class="wrapper wrapper-content">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
						<form class="form-horizontal" id="signupForm">
							<input id="cid" name="cid" type="hidden">
							<div class="col-lg-9 article">
								<div class="form-group">
									<label class="col-sm-1 control-label">标题：</label>
									<div class="col-sm-8">
										<input id="title" name="title" class="form-control" type="text">
									</div>
									<label class="col-sm-1 control-label">作者：</label>
									<div class="col-sm-2">
										<input id="author" name="author" class="form-control"
											   type="text" th:value="${user.name}" readonly>
									</div>
								</div>
								<div class="form-group">
									<input id="content" name="content" type="hidden">
									<div class="col-sm-12">
										<div class="ibox-content no-padding">
											<div id="content_sn" class="summernote"></div>
										</div>
									</div>
								</div>
							</div>
							<div class="col-lg-3 article">
								<div class="form-group">
									<label class="col-sm-4 control-label">文章分类：</label>
									<div class="col-sm-8">
										<select data-placeholder="选择类别" class="form-control chosen-select"
												tabindex="2" style="width: 100%" id="categories" name="categories">
											<option value="">选择类型</option>
										</select>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-4 control-label">文章类型：</label>
									<div class="col-sm-8">
										<div class="radio col-sm-4">
											<input type="radio" name="type" value="0" checked require=""/>文字
										</div>
										<div class="radio col-sm-4">
											<input type="radio" name="type" value="1" require=""/>图文
										</div>
										<div class="radio col-sm-4">
											<input type="radio" name="type" value="2" require=""/>视频
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-4 control-label">文章标签：</label>
									<div class="col-sm-8">
										<select data-placeholder="选择标签" class="form-control chosen-select"
												tabindex="2" style="width: 100%" id="tags" name="tags">
											<option value="">选择类型</option>
										</select>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-4 control-label">访问路径：</label>
									<div class="col-sm-8">
										<input id="aliasName" class="form-control" name="aliasName" type="text">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-4 control-label">开启评论：</label>
									<div class="switch onoffswitch col-sm-8">
										<div class="onoffswitch">
											<input id="allowComment" name="allowComment" checked=""
												   type="checkbox" value="1" class="onoffswitch-checkbox">
											<label class="onoffswitch-label"
												   for="allowComment">
												<span class="onoffswitch-inner" value="1"></span>
												<span class="onoffswitch-switch" value="0"></span>
											</label>
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-4 control-label">开启订阅：</label>
									<div class="switch onoffswitch col-sm-8">
										<div class="onoffswitch">
											<input id="allowFeed" name="allowFeed" checked="checked"
												   type="checkbox" value="1" class="onoffswitch-checkbox">
											<label class="onoffswitch-label" for="allowFeed">
												<span class="onoffswitch-inner"></span>
												<span class="onoffswitch-switch"></span>
											</label>
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-4 control-label">发布文章：</label>
									<div class="switch onoffswitch col-sm-8">
										<div class="onoffswitch">
											<input id="status" name="status" type="checkbox" checked=""
												   value="1" class="onoffswitch-checkbox">
											<label class="onoffswitch-label" for="status"> <span
													class="onoffswitch-inner"></span> <span
													class="onoffswitch-switch"></span>
											</label>
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-4 control-label">是否原创 :</label>
									<div class="switch onoffswitch col-sm-8">
										<div class="onoffswitch">
											<input id="origin" name="origin" type="checkbox" checked=""
												   value="1" class="onoffswitch-checkbox">
											<label class="onoffswitch-label" for="origin"> <span
													class="onoffswitch-inner"></span> <span
													class="onoffswitch-switch"></span>
											</label>
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-4 control-label">是否顶置 :</label>
									<div class="switch onoffswitch col-sm-8">
										<div class="onoffswitch">
											<input id="isTop" name="isTop" type="checkbox" checked=""
												   value="1" class="onoffswitch-checkbox">
											<label class="onoffswitch-label" for="isTop"> <span
													class="onoffswitch-inner"></span> <span
													class="onoffswitch-switch"></span>
											</label>
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-4 control-label">是否推荐 :</label>
									<div class="switch onoffswitch col-sm-8">
										<div class="onoffswitch">
											<input id="isRec" name="isRec" type="checkbox" checked=""
												   value="1" class="onoffswitch-checkbox">
											<label class="onoffswitch-label" for="isRec"> <span
													class="onoffswitch-inner"></span> <span
													class="onoffswitch-switch"></span>
											</label>
										</div>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-4 control-label">seo key :</label>
									<div class="col-sm-8">
										<textarea type="text" rows="2" class="form-control" name="seoKey"
												  id="seoKey"
												  placeholder="文章关键词（SEO优化）"></textarea>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-4 control-label">seo desc :</label>
									<div class="col-sm-8">
										<textarea type="text" rows="2" class="form-control" name="seoDesc"
												  id="seoDesc"
												  placeholder="文章描述（SEO优化）"></textarea>
									</div>
								</div>
								<div class="text-right form-group">
									<button
											class="btn btn-primary waves-effect waves-light"
											type="submit">保存文章
									</button>
									<a class="btn btn-default waves-effect waves-light"
									   onclick="returnList()">返回列表</a>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/blog/bContent/add.js"></script>
</body>
</html>
